package com.dev.op.exceptions;

import com.dev.op.enums.ResultCode;

import java.util.Vector;

public class BizException extends RuntimeException {

    private final int code;

    public BizException(ResultCode resultCode) {
        super(resultCode.message());
        this.code = resultCode.code();
        Vector vector = new Vector();
    }

    public BizException(int code, String message) {
        super(message);
        this.code = code;
    }

    public int getCode() {
        return code;
    }
}

